# -*- coding: UTF-8 -*-

from google.appengine.ext import db
import datetime

class dsPersonEntity(db.Model):
    parents_key = db.ReferenceProperty()
    name = db.StringProperty()
    sex = db.StringProperty(default = 'male', choices = ('male','female'))
    birthday = db.DateProperty(default = datetime.date(1900,1,1))

    def __init__(self, parents, *args, **kwds):
        super(dsPersonEntity, self).__init__(*args, **kwds)
        self.parents_key = parents.key()